<%@ page language="java" contentType="text/html; charset=utf8" pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><spring:message code="label.header.patients.all" /></title>
<link href="<c:url value = "/resources/css/style.css"/>" rel="stylesheet" type="text/css" media="screen, projection" />
</head>
<body>
	<div align="center" class="layout">
		<div class="header">
			<img src=<c:url value = "/resources/images/immunologyHeader.png"/> alt="Immunology" />
		</div>
		<div class="startFromTop">
			<div class="sideLeft">
				<tags:adminMenu />
			</div>
			<div class="content">
				<div class="customBox">
					<h2>
						<spring:message code="label.header.patients.all" />
					</h2>
					<div class="block" id="rightFullPanel">
						<%-- <tags:patientRegistration/> --%>
						This is create user page
						<c:if test="${error_register !=null}">
							<div class="errorBlock">${error_register}</div>
						</c:if>
						<form:form method="POST" commandName="user"
						  onsubmit="return validateRequiredFields($('form'));">
							<table>
								<tr height="40px" align="right">
									<td class="boldText"><spring:message code="label.lastName" /></td>
									<td><input type="text" 
											   class="required" 
											   style="width: 150px; margin-left: 10px;" 
											   name="lastName" /></td>
									<td class="requiredField">*</td>
								</tr>
								<tr height="40px" align="right">
									<td class="boldText"><spring:message code="label.firstName" /></td>
									<td><input type="text"
											   class="required" 
											   style="width: 150px; margin-left: 10px;" 
											   name="firstName" /></td>
									<td class="requiredField">*</td>
								</tr>
								<tr height="40px" align="right">
									<td class="boldText"><spring:message code="label.middleName" /></td>
									<td><input type="text" style="width: 150px; margin-left: 10px;"	name="middleName" /></td>
									<td class="requiredField">*</td>
								</tr>
								
								<tr height="40px" align="right">
									<td class="boldText"><spring:message code="label.post" /></td>
									<td><input type="text" style="width: 150px; margin-left: 10px;"	name="post" /></td>
									<td class="requiredField">*</td>
								</tr>
	
								<tr height="40px" align="right">
									<td class="boldText"><spring:message code="label.login" /></td>
									<td><input type="text" style="width: 150px; margin-left: 10px;"	name="login" /></td>
									<td class="requiredField">*</td>
								</tr>
								<tr height="40px" align="right">
									<td class="boldText"><spring:message code="label.password" /></td>
									<td><input type="password" style="width: 150px; margin-left: 10px;"	name="password" /></td>
									<td class="requiredField">*</td>
								</tr>
								
								<tr height="40px" align="right">
									<td class="boldText"><spring:message code="label.roles" /></td>
									<td>
										<select name="roles">
											<c:forEach items="${roles}" var="role">
												<option value="<c:out value="${role.id}" />">
													<c:out value="${role.roleName}" />
												</option>
											</c:forEach>
										</select>
									</td>
									<tr height="60px">
										<td colspan="2" align="center" class="buttonsPanel">
											<input type="submit" value=<spring:message code="button.text.registration"/> />
											<input type="reset" value=<spring:message code="button.text.reset"/> />
										</td>
									</tr>
							</table>
						</form:form>
					</div>
				</div>
			</div>
		</div>
		<div class="footer">
			<spring:message code="label.footer" />
		</div>
	</div>
	<script type="text/javascript" src=<c:url value ="/resources/js/jquery-1.7.2.min.js"/>></script>
	<script type="text/javascript" src=<c:url value ="/resources/js/scripts.js"/>></script>
</body>
</html>